<template>
  <div>
    <!-- <h1>测试SVG</h1>
    <svg-icon name="home" color="green" width="30px" height="30px"></svg-icon>
    <Pagination></Pagination>

    <h1>测试axios二次封装</h1> -->
    <!-- <el-icon>
      <Plus/>
    </el-icon> -->
    <router-view></router-view>
  </div>
</template>

<script setup lang="ts">
import request from './utils/request'
import { onMounted } from 'vue'
import { reqLogin } from './api/user'

onMounted(() => {
  reqLogin({ username: 'admin', password: '111111' })
  // request({
  //   url: 'user/login',
  //   method: 'post',
  //   data: {
  //     username: 'admin',
  //     password: '111111',
  //   },
  // }).then((res) => {
  //   console.log('res:', res)
  // })
})
</script>

<style scoped lang="scss">
div {
  h1 {
    color: $color;
  }
}
</style>
